package com.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.demo.domain.UserDTO;
import com.demo.core.exception.ParameterException;
import jakarta.servlet.http.HttpSession;

public interface MailService extends IService<UserDTO> {
    Object[] sendMail( String email, HttpSession session) throws ParameterException;
//    随机生成验证码
    String randomCode() ;
//    检验验证码是否一致
    boolean validateCode(UserDTO userDTO, HttpSession session) throws ParameterException;
}
